import {
    request
} from "./request";
import qs from "qs";


//  根据主公司id获取推广公司集合
export function getCompanyList(obj) {
    return request({
        url: "ScCompany/getCompanyList",
        method: "post",
        data: qs.stringify(obj),
    });
}
//添加公司
export function addCompanyList(obj) {
    return request({
        url: "ScCompany/addCompanyList",
        method: "post",
        data: qs.stringify(obj),
    });
}
//上下线
export function updateCompanyUpDown(obj) {
    return request({
        url: "ScCompany/updateCompanyUpDown",
        method: "post",
        data: qs.stringify(obj),
    });
}
//
export function addCompanyCode(obj) {
    return request({
        url: "ScCompany/addCompanyCode",
        method: "post",
        data: qs.stringify(obj),
    });
}
//根据公司id获取结算详情
export function getCompanyCommison(obj) {
    return request({
        url: "ScCompany/getCompanyCommison",
        method: "post",
        data: qs.stringify(obj),
    });
}
//根据公司id结算佣金
export function settleCompanyCommison(obj) {
    return request({
        url: "ScCompany/settleCompanyCommison",
        method: "post",
        data: qs.stringify(obj),
    });
}
//根据公司id 结算日期 公司名称获取公司佣金发放信息
export function getCompanyListInfo(obj) {
    return request({
        url: "ScCompany/getCompanyListInfo",
        method: "post",
        data: qs.stringify(obj),
    });
}
// 获取全部公司列表
export function getCompanyListNoPage(obj) {
    return request({
        url: "ScCompany/getCompanyListNoPage",
        method: "post",
        data: qs.stringify(obj),
    });
}